﻿
using DomainModel.Domain.Model.SubscriptionModel;
using FluentNHibernate.Mapping;

namespace DomainModel.Infrastructure.Mappings
{
    public class SubscriptionMap : ClassMap<Subscription>
    {
        public SubscriptionMap()
        {

            CompositeId(x => x.Id).KeyProperty(x => x.Id);

            References(x => x.Publisher);
            References(x => x.Subscriber);
            References(x => x.MessageType);

            Map(x => x.RegisterDate);

        }
    }
}